package com.lovo.service.impl;

import com.lovo.bean.CutPageBean;
import com.lovo.bean.EmpBean;
import com.lovo.dao.IEmpDao;
import com.lovo.dao.impl.EmpDaoImpl;
import com.lovo.service.IEmpService;

public class EmpServiceImpl implements IEmpService {
    private IEmpDao empDao = new EmpDaoImpl();
    @Override
    public CutPageBean<EmpBean> findByItem(int pageNo, String name, String education) {
        return empDao.findByItem(pageNo,name,education);
    }

    @Override
    public void add(EmpBean empBean) {
        empDao.add(empBean);
    }

    @Override
    public void delete(int id) {
        empDao.delete(id);
    }

    @Override
    public void update(EmpBean empBean) {
        empDao.update(empBean);
    }
}
